package com.train.webadmin.app.dto;

import com.train.common.core.validator.UpdateGroup;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.*;

/**
 * 班级学生关系表Dto对象。
 *
 * @author xulei
 * @date 2025-03-07
 */
@Schema(description = "班级学生关系表Dto对象")
@Data
public class ClassStudentDto {

    /**
     * id。
     */
    @Schema(description = "id。", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "数据验证失败，id不能为空！", groups = {UpdateGroup.class})
    private Long id;

    /**
     * 学生id。
     */
    @Schema(description = "学生id。", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "数据验证失败，学生id不能为空！")
    private Long studentId;

    /**
     * 班级id。
     */
    @Schema(description = "班级id。", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "数据验证失败，班级id不能为空！")
    private Long classId;

    /**
     * 状态(0在读,1已毕业)。
     */
    @Schema(description = "状态(0在读,1已毕业)。", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "数据验证失败，状态(0在读,1已毕业)不能为空！", groups = {UpdateGroup.class})
    private Integer status;

    @Schema(description = "学生分数。")
    private Double score;

    @Schema(description = "单位名称。")
    private String companyName;

    @Schema(description = "证书编号。")
    private String certificateNo;

    @Schema(description = "单位id。")
    private Long schoolId;
}
